<?php

namespace App\Models\Cms;

use Illuminate\Database\Eloquent\Model;

/**
 * Class Assets
 * @package App\Models
 */
class Assets extends Model
{

    /**
     * 对应表名
     *
     * @var string
     */
    public $table = 'cms_assets';
    protected $fillable = [
        'name',
        'path',
        'type',
        'tags'
    ];

    public function image()
    {
        return $this->belongsTo('App\Model\Cms\ContentBlog', 'intro_image', 'id');
    }

}
